/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package com.nicolascarrascob.pds.serviciosoap.orm;

import java.io.Serializable;
public class Sala implements Serializable {
	public Sala() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == com.nicolascarrascob.pds.serviciosoap.orm.ORMConstants.KEY_SALA_PELICULA) {
			this.pelicula = (com.nicolascarrascob.pds.serviciosoap.orm.Pelicula) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int idSala;
	
	private String nombreSala;
	
	private Integer numButacas;
	
	private com.nicolascarrascob.pds.serviciosoap.orm.Pelicula pelicula;
	
	private void setIdSala(int value) {
		this.idSala = value;
	}
	
	public int getIdSala() {
		return idSala;
	}
	
	public int getORMID() {
		return getIdSala();
	}
	
	public void setNombreSala(String value) {
		this.nombreSala = value;
	}
	
	public String getNombreSala() {
		return nombreSala;
	}
	
	public void setNumButacas(int value) {
		setNumButacas(new Integer(value));
	}
	
	public void setNumButacas(Integer value) {
		this.numButacas = value;
	}
	
	public Integer getNumButacas() {
		return numButacas;
	}
	
	public void setPelicula(com.nicolascarrascob.pds.serviciosoap.orm.Pelicula value) {
		if (pelicula != null) {
			pelicula.sala.remove(this);
		}
		if (value != null) {
			value.sala.add(this);
		}
	}
	
	public com.nicolascarrascob.pds.serviciosoap.orm.Pelicula getPelicula() {
		return pelicula;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Pelicula(com.nicolascarrascob.pds.serviciosoap.orm.Pelicula value) {
		this.pelicula = value;
	}
	
	private com.nicolascarrascob.pds.serviciosoap.orm.Pelicula getORM_Pelicula() {
		return pelicula;
	}
	
	public String toString() {
		return String.valueOf(getIdSala());
	}
	
}
